﻿<%@ Page Language="C#" MasterPageFile="~/travel-hotels/Travel_Hotels.master" AutoEventWireup="true"
    CodeFile="confirmation.aspx.cs" Inherits="travel_hotels_confirmation" %>

<%@ Register Src="~/controls/usrNoJS.ascx" TagName="usrNoJS" TagPrefix="ucNoJS" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">

    <script src="../includes/ValidationError-NEW.js" type="text/javascript"></script>

    <script src="../includes/ValidationEffect-NEW.js" type="text/javascript"></script>

    <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>

    <div class="elements_inner_wrapper">
        <ucNoJS:usrNoJS ID="usrNoJS1" runat="server" />

        <script type="text/javascript">
            function initialize() {
                var maplat = document.getElementById('<%=inputLat.ClientID%>').value;
                var maplong = document.getElementById('<%=inputLong.ClientID%>').value;

                //var latlng = new google.maps.LatLng(40.7562008, -73.9903784);
                var latlng = new google.maps.LatLng(maplat, maplong);
                var settings = {
                    zoom: 16,
                    center: latlng,
                    mapTypeId: google.maps.MapTypeId.ROADMAP
                };
                var map = new google.maps.Map(document.getElementById('divMap'), settings);

                var myMarker = new google.maps.Marker({
                    position: latlng,
                    map: map,
                    title: ""
                }); 
            }
        </script>

        <div id="divContent" style="display:">
            <input type="hidden" id="inputLat" runat="server" value="0" />
            <input type="hidden" id="inputLong" value="0" runat="server" />
            <asp:Label ID="lblMessage" runat="server" ForeColor="OrangeRed"></asp:Label>
            
            <div id="divConfirmation">
                
                <h3 class="m10t"><asp:Label ID="lblConfirm" runat="server" Text="Your reservation is confirmed."></asp:Label></h3>
                    
                <div class="bdis_full t_rad">
                
                    <div class="llable">Your Itinerary Number:</div>
                    <div class="lvalue"><asp:Label ID="lblItineraryNum" runat="server" Font-Bold="true"></asp:Label></div>
                    <div class="clear"></div>
                    <div class="llable">Your Booking Confirmation Number(s):</div>
                    <div class="lvalue"><asp:Label ID="lblBookingConfirmation" runat="server" Font-Bold="true"></asp:Label></div>
                    <div class="seperator"></div>
                    <label style="font-size: small">
                        *You will receive an email containing the confirmation and reservation details.
                        Please refer to your itinerary number if you contact customer service for any reason
                    </label>
                    <div class="clear"></div>
                </div>
                <div class="fblue b_rad" style="height: 25px;">
                    <div class="right">
                        <a href="#" onclick="window.print()">Print this page</a> | <a href="manage.aspx">View or cancel your reservation online</a>
                    </div>
                </div>
                
                <div class="hotelwrap">
                
                    <div class="btitle_full a_rad"><h3>Reservation Details</h3></div>
                    
                    <div class="w490 left">                    
                        <h3><asp:Label ID="lblHotelName" runat="server"></asp:Label></h3>                        
                        <asp:Button ID="btnStars" runat="server" Enabled="false" />
                        <br />
                        <asp:Label ID="lblHotelAddress" runat="server"></asp:Label>
                        <br />
                        US and Canada: 1-800-780-5733 Europe: 00-800-11-20-11-40
                        
                        <div class="seperator"></div>

                        <h4>Property Details</h4>
                        <asp:Label ID="lblPropertyDetails" runat="server"></asp:Label>
                        
                        <div class="seperator"></div>
                        
                        <h4>Additional Amenities</h4>
                        <asp:Label ID="lblAmenities" runat="server"></asp:Label>
                        
                        <div class="seperator"></div>
                        
                        <table cellpadding="3" cellspacing="2" width="500px" style="text-align: left;">
                            <tr>
                                <td style="width: 200px;"  class="b_clr">
                                    <b>Check-in:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblCheckin" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;"  class="b_clr">
                                    <b>Check-out:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblCheckout" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;"  class="b_clr">
                                    <b>Number of nights:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblNights" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;"  class="b_clr">
                                    <b>Guests:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblGuest" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;"  class="b_clr">
                                    <b>Room type:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblRoomType" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;"  class="b_clr">
                                    <b>Rooms:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblRooms" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                    </div>
                    
                    <div class="w490 right">
                        <div class="mapview">
                            <div id="divMap" style="width: 478px; height: 300px;">
                            </div>
                        </div>
                    </div>
                    
                    <div class="seperator"></div>
                    <div class="clear"></div>
                    
                    <div class="hotel_content">
                    
                        <div class="btitle_full a_rad"><h3>Room Details</h3></div>                        
                        <h4><asp:Label ID="lblRoomName" runat="server"></asp:Label></h4>                        
                        <asp:Label ID="lblRoomAmenities" runat="server"></asp:Label>                        
                        <div class="seperator"></div>                        
                        <asp:Label ID="lblGuests" runat="server" Font-Bold="true"></asp:Label>                        
                        <div class="seperator"></div>                        
                        <div class="i11">**Please note: Preferences and special requests cannot be guaranteed. Special requests
                        are subject to availability upon check-in and may incur additional charges.</div>                        
                        <div class="seperator"></div>
                        
                                                
                        <div class="btitle_full a_rad"><h3>Charges</h3></div>
                        <asp:Label ID="lblNoCharge" runat="server" Text="We don’t charge your credit card. Your credit card is required to guarantee your booking.<br/><br/>" Font-Bold="true" Font-Size="Medium" Visible="false"></asp:Label>
                        <asp:Label ID="lblPriceDisplayed" runat="server" Text="All prices are displayed in $ SGD"></asp:Label>               
                        
                        <div class="seperator"></div>
                        
                        <asp:Label ID="lblPriceDetails" runat="server" Font-Bold="true"></asp:Label><br />
                        <asp:Label ID="lblTaxDisclaimer" runat="server" Text=" *Excluding tax recovery charges and service fees" CssClass="i11"></asp:Label>
                       
                        <div class="seperator"></div>
                        
                        <asp:Label ID="lblExtraPersonFee" runat="server" Font-Bold="true"></asp:Label>
                        <asp:Label ID="lblHotelTax" runat="server" Font-Bold="true"></asp:Label>
                        <asp:Label ID="lblSalesTax" runat="server" Font-Bold="true"></asp:Label>
                        <asp:Label ID="lblServiceFee" runat="server" Font-Bold="true"></asp:Label>
                        <asp:Label ID="lblPriceTax" runat="server" Font-Bold="true"></asp:Label>
                        <br />
                        
                        <div id="divTotalCharges" runat="server">
                            <strong>Total Charges**</strong>&nbsp;&nbsp;
                            <span class="ticket"><asp:Label ID="lblTotalCharge" runat="server"></asp:Label></span>
                            <br /><br />
                            <div class="i11">**Including tax recovery charges and service fees. We have charged your credit card
                            for the full payment of this reservation.</div>
                        </div>
                        
                        <div class="seperator"></div>
                        
                        <h4>Payment Information</h4>
                        
                        <table cellpadding="3" cellspacing="2" width="500px" style="text-align: left;">
                            <tr>
                                <td style="width: 200px;" class="b_clr">
                                    <b>Cardholder Name: </b>
                                </td>
                                <td>
                                    <asp:Label ID="lblCardholder" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;" class="b_clr">
                                    <b>Billing Address:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblBillingAddress" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;" class="b_clr">
                                    <b>Email Address:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblEmailAddress" runat="server"></asp:Label>
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 200px;" class="b_clr">
                                    <b>Phone number:</b>
                                </td>
                                <td>
                                    <asp:Label ID="lblPhone" runat="server"></asp:Label>
                                </td>
                            </tr>
                        </table>
                        
                        <div class="seperator"></div>
                        
                        <div class="btitle_full a_rad"><h3>Additional Hotel Information</h3></div>
                        
                        <h4>Hotel Terms & Conditions</h4>                        
                        <asp:Label ID="lblNotification" runat="server"></asp:Label>
                        
                        <h4>Cancellation Policy</h4>
                        <asp:Label ID="lblCancellation" runat="server"></asp:Label>
                        <div class="seperator"></div>
                        <div class="btitle_full a_rad"><h3>Customer Support Contact Information</h3></div>
                        US and Canada: 1-800-780-5733 Europe: 00-800-11-20-11-40<br />
                        Promo Code 381988<br />
                        Please refer to your reservation number (84941664) when calling.
                        
                        <div class="seperator"></div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <script type="text/javascript">

        window.onload = initialize();

        history.go(+1);

    </script>

</asp:Content>
